package android.listeners;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

public class ItemClickListener implements View.OnClickListener {
	
	private Class<? extends Activity> nextActivityClass;

	public ItemClickListener(
			Class<? extends Activity> nextActivityClass) {
		this.nextActivityClass = nextActivityClass;
	}

	@Override
	public void onClick(View v) {
		Intent intent = new Intent(v.getContext(), nextActivityClass);
		v.getContext().startActivity(intent);

	}

}
